package com.enjoy.spring.cloudalibabachapter03.controller;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyController {
    @Autowired
    RedissonClient redisson;
    @RequestMapping("/")
    public boolean gg(){
        return redisson.isShutdown();
    }
}
